//
//  UIButton+Extension.swift
//  SinaWeibo
//
//  Created by 程建 on 16/9/23.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit

extension UIButton {

    convenience init(title:String, textColor:UIColor,fontSize:CGFloat) {
        self.init()
        setTitle(title, for: UIControlState.normal)
        setTitleColor(textColor, for: UIControlState.normal)
        titleLabel?.font = UIFont.systemFont(ofSize: fontSize)
        sizeToFit()
    }

}
